package com.pointstar.dp.tree;

/**
 * @author 朱科睿
 */
public class BinarySearch {

    private int data;
    private BinarySearch left;
    private BinarySearch right;

    public BinarySearch() {
    }

    public BinarySearch(int data) {
        this.data = data;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public BinarySearch getLeft() {
        return left;
    }

    public void setLeft(BinarySearch left) {
        this.left = left;
    }

    public BinarySearch getRight() {
        return right;
    }

    public void setRight(BinarySearch right) {
        this.right = right;
    }

}
